package com.iring.controller.admin;

import java.util.List;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import com.iring.controller.BaseController;
import com.iring.domain.common.AllService;


/**
 * 获取服务信息
 *
 * @author wanggan
 */
@RestController
@RequestMapping(value = "/admin/service", produces = { "application/json;charset=UTF-8" })
public class ServicesController extends BaseController {

    /**
     * 查询所有的服务
     *
     * @return 返回所有的服务信息列表
     */
    @RequestMapping(value = "/list-all-services", method = RequestMethod.POST)
    public List<AllService> listAllServices() {
        return allServicesDao.findAll();
    }

}
